package com.hdey.controller.heng;

import com.hdey.pojo.heng.*;
import com.hdey.service.heng.RequestMasterChildService;
import com.hdey.service.heng.TbUscPurchaseChildService;
import com.hdey.service.heng.TbUscPurchaseMasterService;
import com.hdey.service.heng.TbUscPurchaserequestMasterService;
import com.hdey.utils.Result;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;
import java.util.List;
@Slf4j
@Controller
@RequestMapping("/heng/purchase/applyFor")
public class ApplyForController {

    @Resource
    private RequestMasterChildService masterChildService;



    @GetMapping("/showAll")
    @ResponseBody
    public Result showAll(){
        List<RequestMasterChild> list=masterChildService.showAll();
        return Result.success(list);
    }


}


